#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>

int main() {
    int n = 0;
    float arr[101];
    scanf("%d %f", &n, &arr[0]);
    float x = arr[0];
    float m = arr[0];
    float p = arr[0];
    for (int i = 1; i < n; i++)
    {
        scanf("%f", &arr[i]);
        if (x < arr[i])
        {
            x = arr[i];
        }
        if (m > arr[i])
        {
            m = arr[i];
        }
        p = p + arr[i];
    }
    printf("%.2f %.2f %.2f", x, m, p / n);
    return 0;
}